GHA: Use SHA from PR HEAD commit for pkg name #1124
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm opening this PR for discussion (see #1123 (comment)) but I'm not sure it should be merged, as there are some caveats.
The CI script still builds the merge commit. It is possible to change this and build the PR HEAD, but I'm not sure it is a good idea. The point of CI is to run the build tests before merging and the PR HEAD might be way off from the actual merge result (if it hasn't been rebased recently, for example).
With CI building the merge commit (which I think is a good idea), is it actually a good idea to name the build artifacts with the SHA from PR HEAD? If the PR was not rebased recently then the build artifacts are not based off that HEAD, strictly speaking.
(Note that all of this discussion only matters for open PRs; CI builds on merges, direct pushes and tagging are unaffected.)